package com.sinvo.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sinvo.oa.entity.model.system.SysMenu;

import java.util.List;

/**
 * @Description 菜单 Mapper接口
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    //根据roleId查询其菜单
    List<Long> queryMenuByRoleId(Long roleId);
    //根据userId查询菜单
    List<SysMenu> queryMenuListByUserId(Long userId);
}
